import request from '@/utils/request'

// 查询电子面单列表
export function listKdOrder(query) {
  return request({
    url: '/prod-api/order/kdOrder/list',
    method: 'get',
    params: query
  })
}

// 查询电子面单详细
export function getKdOrder(kdOrderUid) {
  return request({
    url: '/prod-api/order/kdOrder/' + kdOrderUid,
    method: 'get'
  })
}

// 新增电子面单
export function addKdOrder(data) {
  return request({
    url: '/prod-api/order/kdOrder',
    method: 'post',
    data: data
  })
}

// 修改电子面单
export function updateKdOrder(data) {
  return request({
    url: '/prod-api/order/kdOrder',
    method: 'put',
    data: data
  })
}

// 删除电子面单
export function delKdOrder(kdOrderUid) {
  return request({
    url: '/prod-api/order/kdOrder/' + kdOrderUid,
    method: 'delete'
  })
}
